package com.feng.openFeignPlus.annotion;

import com.feng.openFeignPlus.scan.Scanner;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启动feign增强
 * 通过该注解指定要扫描的包名
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import(Scanner.class)
@EnableFeignClients
public @interface EnableOpenFeignPlus {

    /**
     * 扫描的包名数组
     * @return
     */
    String[] basePackages() default {};

    /**
     * 扫描的class数组
     * @return
     */
    Class<?>[] basePackageClasses() default {};
}
